package com.sbtr.business.feature.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import io.swagger.annotations.ApiModel;


/**
 * 重复值处理字段列表 实体类
 *
 * @author dgl
 * @since 2023-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("f_fe_duplicate_rule")
@ApiModel(value="FeDuplicateRule对象", description="重复值处理字段列表")
public class FeDuplicateRule extends Model<FeDuplicateRule> {

    @ApiModelProperty(value = "id")
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "去重字段:待去重字段名称")
    private String duplicate;

    @ApiModelProperty(value = "原始数据字段ID:fe_datafield表ID")
    private Long datafieldId;

    @ApiModelProperty(value = "所属处理链id:特征处理链f_fe_operator表的ID")
    private Long processingId;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 后台传数据到前台
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传数据到后台
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
